﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace BlogSystem.EntityFrameworkCore.Migrations
{
    public partial class init2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "reply_title",
                table: "Reply",
                type: "int",
                nullable: true,
                comment: "评论标题",
                oldClrType: typeof(int),
                oldType: "int",
                oldComment: "评论标题");

            migrationBuilder.AlterColumn<DateTime>(
                name: "reply_date",
                table: "Reply",
                type: "datetime2",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
                comment: "评论时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime2",
                oldNullable: true,
                oldComment: "评论时间");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "reply_title",
                table: "Reply",
                type: "int",
                nullable: false,
                defaultValue: 0,
                comment: "评论标题",
                oldClrType: typeof(int),
                oldType: "int",
                oldNullable: true,
                oldComment: "评论标题");

            migrationBuilder.AlterColumn<DateTime>(
                name: "reply_date",
                table: "Reply",
                type: "datetime2",
                nullable: true,
                comment: "评论时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime2",
                oldComment: "评论时间");
        }
    }
}
